import request from '../utils/request'
export const getList = function () {
  return new Promise((resolve) => {
    setTimeout(() => {
      resolve({
        data: [{ name: 1, code: 1 }]
      })
    }, 100);
  })
}

export const addList = function (data) {
  return request({
    url: 'http://192.168.1.7/json/add',
    method: 'post',
    data
  })
}